package com.zhanglu.fun.tookit.ddd.service;

import com.zhanglu.fun.tookit.ddd.domain.UserDomain;
import com.zhanglu.fun.tookit.ddd.view.UserLoginView;

/**
 * @author zhanglu
 * @description 非常薄的一层，有高扩展性。相当于快递员
 * @date 2017/11/2 22:49
 */
public class UserService {
    public void login(UserLoginView loginView) {
        new UserDomain()
                .getUserLoginDomain()
                .setPassword(loginView.getPassword())
                .setUsername(loginView.getUsername())
                .login();
    }
}
